Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: xPages: Combobox with "Refresh choices on document refresh". How ?
Feedback Type: Question
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Functionality
Platform: Windows XP client
Release: 8.5
Reproducible: Not applicable

Hi,

I am testing the new xPages and they are great :-)

However I can!t get a simple combobox with "Refresh choices on document refresh" to work.

On my form (xPage with a data source "Document" called "Doc1") i have two comboboxes.
The first one ("ProjectName") gets its values from the following formula "@DbColumn("","Projects",1);". And this works !

The second on should offer different values based on the selection of the previous combobox.
It has this formula: "@DbLookup("","Projects",Doc1.getItemValueString("ProjectName"),2);"

The first combobox has the onChange-Event set to perform a "Partial Update" on the second combobox. (I also tried a full update with same result.)

But my second combobox is always empty. :-(


If I do the Lookup with a hard-coded key value, then it works. So its not a problem with the view or the Lookup syntax. Rather the code "Doc1.getItemValueString("ProjectName")" seems not to return the current value from the first field.


Is this approach wrong ?
If I try to put the code "Doc1.getItemValueString("ProjectName")" into a computed field, it does not display the value correctly. Do i have to save the document first ?
I am using only server-side scripts, does this have to be done with "client side" code ?

Thank you for any help.
Or could you point me to a working example somewhere ?

Bye Lars


Feedback number WEBB7QUU7Q created by ~Ethan Frofoomanikle on 04/06/2009

Status: Open
Comments:

xPages: Combobox with "Refresh choi... (~Ethan Frofooma... 6.Apr.09)
. . Sounds like you're doing alot of th... (~Joan Zektoomar... 7.Apr.09)
. . . . Still no progress (~Ethan Frofooma... 7.Apr.09)
. . . . . . Could you send me the sample app? (~Joan Zektoomar... 7.Apr.09)
. . Designer bug (PHAN7QWBL8) logged, t... (~Joan Zektoomar... 8.Apr.09)
. . . . It works !! But more info... (~Ethan Frofooma... 8.Apr.09)
. . . . . . Here how to work with this... (~Joan Zektoomar... 8.Apr.09)
. . . . . . . . Thanks a lot. It works :-) (~Ethan Frofooma... 8.Apr.09)
. . . . . . . . . . Found the answer to he last questio... (~Ethan Frofooma... 8.Apr.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS